package net.colah.k1.core;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.MapsId;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.openkoala.koala.commons.domain.KoalaAbstractEntity;

/**
 * Created by sinclair on 4/27/14.
 */
@Entity
@Table(name = "BO_INVENTORY")
public class Inventory extends KoalaAbstractEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4019217976533033588L;

	private Product product;
	private Integer qty;

	@OneToOne
	@JoinColumn(name = "PRODUCT_ID")
	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	@Column(name = "QTY")
	public Integer getQty() {
		return qty;
	}

	public void setQty(Integer qty) {
		this.qty = qty;
	}

	@Override
	public String[] businessKeys() {
		return new String[0];
	}
}
